package yz.cp.back.s.service;

import com.baomidou.mybatisplus.extension.service.IService;
import yz.cp.back.s.entity.SysDepartmentHeader;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2019-04-03
 */
public interface ISysDepartmentHeaderService extends IService<SysDepartmentHeader> {
    /**
     * 通过部门和负责人类型获取
     * @param departmentId
     * @param type
     * @return
     */
    List<String> findHeaderByDepartmentId(String departmentId, Integer type);

    /**
     * 通过部门id删除
     * @param departmentId
     */
    void deleteByDepartmentId(String departmentId);

    /**
     * 通过userId删除
     * @param userId
     */
    void deleteByUserId(String userId);
}
